<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<center><a href="addUser">添加用户</a></center>
<table border="1">
	<tr>
		<td>用户姓名</td>
		<td>用户账号</td>
		<td>用户密码</td>
		<td>用户性别</td>
		<td>用户年龄</td>
		<td>用户的地址</td>
		<td>用户的邮箱</td>
		<td>操作</td>
	</tr>
	<c:forEach items="${userList }" var="item">
		<tr>
			<td>用户姓名:${item.userName }</td>
			<td>用户账号:${item.userAccount }</td>
			<td>用户密码 :${item.userPassword }</td>
			<td>用户性别:${item.userSex }</td>
			<td>用户年龄:${item.userAge }</td>
			<td>用户的地址:${item.userAddress }</td>
			<td>用户的邮箱:${item.userEmail }</td>
			<td><a href="update?id=${item.id}">修改</a>||<a href="delete?id=${item.id}">删除</a>||<a href="query?id=${item.id}">查看</a></td>
		</tr>

	</c:forEach>
</table>

</body>
</html>